// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '设备类型',
        name: 'device_type',
        url: "/device_type/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"code":"","name":"","description":""};
    const editFormOptions = [[{"title":"编码","required":true,"field":"code","type":"text"}],
                              [{"title":"名称","required":true,"field":"name","type":"text"}],
                              [{"title":"描述","field":"description","type":"textarea"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'id',title:'id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'code',title:'编码',type:'bigint',width:110,require:true,align:'left'},
                       {field:'name',title:'名称',type:'string',width:220,require:true,align:'left'},
                       {field:'description',title:'描述',type:'string',width:220,align:'left'},
                       {field:'createdusername',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'createdtime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'updatetime',title:'更新时间',type:'datetime',width:150,align:'left'},
                       {field:'updateusername',title:'updateusername',type:'string',width:220,hidden:true,align:'left'},
                       {field:'one',title:'one',type:'string',width:220,hidden:true,align:'left'},
                       {field:'two',title:'two',type:'string',width:220,hidden:true,align:'left'},
                       {field:'three',title:'three',type:'string',width:220,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}